<template>
  <div class="page-tools">
    <!-- 左侧 -->
    <div class="left">
      <div v-if="$slots.left" class="tips">
        <i class="el-icon-info" />
        <slot name="left" />
      </div>
    </div>
    <!-- 右侧 -->
    <div class="right">
      <slot name="right" />
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.page-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f4f4f5;
  border-radius: 5px;
  margin: 8px 0;
  .tips {
    line-height: 34px;
    padding: 0px 15px;
    border-radius: 5px;
    font-size: 14px;

    i {
      margin-right: 10px;
      color: grey;
    }
  }
}
</style>
